package com.briup.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.briup.cms.bean.Article;
import com.briup.cms.bean.User;
import com.briup.cms.bean.extend.ArticleExtend;
import com.briup.cms.bean.vo.ArticleParam;

import java.util.List;

public interface IArticleService {

    //新增及更新
    public void saveOrUpdate(Article article);

    //审核文章
    public void reviewArticle(Long id, String status);

    public void deleteInBatch(List<Long> ids);

    //分页+条件查询文章(含作者)
    public IPage<ArticleExtend> query(ArticleParam articleParam);

    //查询指定文章(含作者+3条1级评论)
    public ArticleExtend queryByIdWithCommentsAndUser(Long id);
}
